Skip to content

ArrayEqual

Edit on GitHub View Code


Supported Response Area Types

This evaluation function is supported by the following Response Area components:

  • MATRIX
  • TABLE
  • MULTIPLE_CHOICE

This function is used to compare two number arrays/vectors/matrices, provided absolute and/or relative tolerance parameters rtol and atol. This is carried out using the numpy.allclose function.

Optional parameters

There is one optional parameter: feedback_for_incorrect_response.

feedback_for_incorrect_response

All feedback for all incorrect responses will be replaced with the string that this parameter is set to.