<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
| Attribute | Type | Values |
|---|---|---|
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 = "…" |
| Property | Type |
|---|---|
$h.allowedErrorInNumbers | number |
$h.allowedErrorIsAbsolute | boolean |
$h.caseInsensitiveMatch | boolean |
$h.disabled | boolean |
$h.expandOnCompare | boolean |
$h.fixed | boolean |
$h.fixLocation | boolean |
$h.hidden | boolean |
$h.includeErrorInNumberExponents | boolean |
$h.matchBlanks | boolean |
$h.matchByExactPositions | boolean |
$h.numPeriodicSetMatchesRequired | integer |
$h.numSignErrorsMatched | number |
$h.simplifyOnCompare | text |
$h.symbolicEquality | boolean |
$h.text | text |
$h.unorderedCompare | boolean |
$h.value | boolean |
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>.