## DESCRIPTION ## Algebra: answers can be entered in any order into answer blanks ## ENDDESCRIPTION ## KEYWORDS('algebra', 'answers can be entered in any order') ## DBsubject('WeBWorK') ## DBchapter('WeBWorK Tutorial') ## DBsection('Fort Lewis Tutorial 2011') ## Date('01/30/2011') ## Author('Paul Pearson') ## Institution('Fort Lewis College') ## TitleText1('') ## EditionText1('') ## AuthorText1('') ## Section1('') ## Problem1('') ################################## # Initialization DOCUMENT(); loadMacros( "PGstandard.pl", "MathObjects.pl", "AnswerFormatHelp.pl", "unorderedAnswer.pl", ); TEXT(beginproblem()); ################################### # Setup Context("Numeric")->variables->add(y=>"Real",z=>"Real"); $a = random(2,9,1); $answer1 = Compute("x^$a"); $answer2 = Compute("y^$a"); $answer3 = Compute("z^$a"); ################################### # Main text Context()->texStrings; BEGIN_TEXT Rewrite the following expression without parentheses. Simplify your answer as much as possible, and assume that all variables are positive. $BR $BR \( (xyz)^{$a} = \) \{ ans_rule(5) \} \( \cdot \) \{ ans_rule(5) \} \( \cdot \) \{ ans_rule(5) \} \{ AnswerFormatHelp("formulas") \} END_TEXT Context()->normalStrings; ################################### # Answers $showPartialCorrectAnswers = 1; # $showPartialCorrectAnswers = 0; # install_problem_grader(~~&std_problem_grader); UNORDERED_ANS( $answer1->cmp(), $answer2->cmp(), $answer3->cmp(), ); ##################################### # Solution Context()->texStrings; BEGIN_SOLUTION ${PAR}SOLUTION:${PAR} Solution explanation goes here. END_SOLUTION Context()->normalStrings; COMMENT("MathObject version."); ENDDOCUMENT();