"CalculusResult" (Comparison Method)

Compare mathematical expressions in a way suitable for exercises about calculus, allowing computation that does not include operations of calculus.

Details

  • The calculus comparison method considers two mathematical expressions to be equivalent if they do not differ by any calculus operations, e.g. D[x^2,x]2x.
  • Answers are considered correct even when containing differences that are not calculus operations, such as basic arithmetic or representations of trigonometric functions.
  • 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-calculus functions (i.e. excluding D and Integrate) are performed within the held values during assessment. It is recommended to always hold the answer.

Examples

open allclose all

Basic Examples  (1)

Create an AssessmentFunction for a calculus question:

Use it to assess an answer:

Scope  (1)

Create an assessment function for the solution to D[Tan[x],x]:

The original question is not accepted as an answer:

Equivalent mathematical expressions that are invariant in calculus operations are considered correct:

Properties & Relations  (1)

Evaluation for operations not considered to be calculus occurs even when the answer is held:

Global definitions of variables are ignored during assessment: