Suppose you want to compare two expressions involving RootOf calls that are specified with intervals. They do not compare as equal if the intervals are not specified in the same way--even if they refer to the same root. Consider the example below: this polynomial has three roots, all real and between -2 and 2.
>
|
|
The root between 0 and 1 is the same as the root between 0.34 and 0.35. However, plain equality testing does not see that.
>
|
|
The RootOf verification solves this problem.
>
|
|
We can still distinguish the two positive roots.
>
|
|
If you want to test a different verification than simple equality after normalizing the RootOf subexpressions, you can use the second calling sequence. For example, suppose we want to see whether a given expression is equivalent to either of the following RootOf calls. We can do that by using the second calling sequence and specifying member verification for ver.
>
|
|
| (4) |
>
|
|
| (5) |
>
|
|
Coincidentally, we can specify an equivalent verification by specifying RootOf verification as the parameter to member verification, instead of the other way around. This calling sequence is explained on the verify/member help page.
>
|
|