"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 allBasic Examples (1)
Create an AssessmentFunction for a calculus question: