ReferencehasSameFactoring

<hasSameFactoring>

<hasSameFactoring> is an Evaluation component that returns the boolean value of true or false depending on whether the two enclosed <math> or math references are factored in the same way.

Attributes and Properties

Attributes for <hasSameFactoring>
AttributeTypeValues
allowedErrorInNumbers = "…"number
allowedErrorIsAbsolute = "…"boolean"true" "false"
allowOnlySignDifferences = "…""true" "false"
caseInsensitiveMatch = "…"boolean"true" "false"
expandOnCompare = "…"boolean"true" "false"
includeErrorInNumberExponents = "…"boolean"true" "false"
matchBlanks = "…"boolean"true" "false"
matchByExactPositions = "…"boolean"true" "false"
monomialFactorMustMatch = "…""true" "false"
numPeriodicSetMatchesRequired = "…"integer
numSignErrorsMatched = "…"number
restrictDivision = "…""true" "false"
simplifyOnCompare = "…"text"none" "full" "numbers" "numberspreserveorder"
symbolicEquality = "…"boolean"true" "false"
unorderedCompare = "…"boolean"true" "false"
variable = "…"
Props for <hasSameFactoring name="h">
PropertyType
$h.allowedErrorInNumbersnumber
$h.allowedErrorIsAbsoluteboolean
$h.caseInsensitiveMatchboolean
$h.disabledboolean
$h.expandOnCompareboolean
$h.fixedboolean
$h.fixLocationboolean
$h.hiddenboolean
$h.includeErrorInNumberExponentsboolean
$h.matchBlanksboolean
$h.matchByExactPositionsboolean
$h.numPeriodicSetMatchesRequiredinteger
$h.numSignErrorsMatchednumber
$h.simplifyOnComparetext
$h.symbolicEqualityboolean
$h.texttext
$h.unorderedCompareboolean
$h.valueboolean

Example: basic use

The <hasSameFactoring> component is used to check that the user has supplied a factored expression, while preserving some flexibility in the manner of response. In order to evaluate to true, the entered expression must:

  • contain two distinct binomial terms
  • be mathematically equivalent to the factored expression

These requirements may be restricted further if desired, by applying additional attributes to <hasSameFactoring>.