###DESCRIPTION ## Factoring Special polynomials ## ##ENDDESCRIPTION ## DBsubject('Intermediate Algebra') ## DBchapter('Ch 05: Polynomials, Polynomial Functions, and Factoring') ## DBsection('Factoring Special Forms') ## KEYWORDS('factoring') ## TitleText1('Essentials of Intermediate Algebra') ## EditionText1('1') ## AuthorText1('Blitzer') ## Section1('5.5') ## Problem1('') ## Author('RA Cruz') ## Institution('The College of Idaho') ## Date: 2007/11 DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", "MathObjects.pl", "CofIdaho_macros.pl" ); TEXT(beginproblem); ###################################### # Setup $a= random(3,6,1); $polynomial = Formula("x^4 - (2*$a)x^2 + $a^2")->reduce->TeX; ###################################### # Main text BEGIN_TEXT Factor completely: $PAR \( $polynomial = \) \{ ans_rule(30) \} END_TEXT ###################################### # Answer $answer="(x^2 - $a)^2"; ANS(FactoringEvaluator($answer,"x")); $showPartialCorrectAnswers = 1; ###################################### ENDDOCUMENT(); # This should be the last executable line in the problem.