"ExponentiationResult" (Comparison Method)
Details
- The exponentiation result comparison method considers two mathematical expressions to be equivalent if they do not differ by any exponentiation operations, e.g. x*xx^2
- Answers are considered correct even when containing differences that are not exponentiation operations, such as basic arithmetic or factoring of numeric coefficients.
- The values of the key and answer can both be specified as held expressions Hold[expr] to maintain the values exactly as they were given. Even when the values are held, evaluation of non-exponentiation functions (i.e. excluding Power and Sqrt) are performed within the held values during assessment. It is recommended to always hold the answer.
- The following tables show comparisons of "ExponentiationResult" with other comparison methods for typical answer keys:


Examples
open all close allBasic Examples (3)
Create an AssessmentFunction for a power question:
Create an assessment with for an algebraic expression containing radicals:
Only factored expressions which are not involving exponentiation when expanded are considered correct:
Terms like integers which do not include square roots or exponents can be factored within correct answers:
Factoring terms with square roots creates an incorrect answer:
Create an assessment for a question about exponents:
Answers differing by factoring of numerics are considered correct:
Answers with different representations of the exponents are considered incorrect:
Scope (2)
Create an assessment function for the solution to x^3*x^2*y^2:
The original question is not accepted as an answer:
Equivalent mathematical expressions that are invariant in exponentiation are considered correct:
Create a QuestionObject for a square root problem:
See Also
AssessmentFunction QuestionObject Power Sqrt
Question Interface Types: ShortAnswer MultipleShortAnswers TextCompletion
Comparison Methods: AlgebraicForm PolynomialResult AlgebraicValue