verify/after
verify after calling a function
Calling Sequence
Parameters
Description
Examples
Compatibility
verify(x, y, 'after'(f, verification, other, arguments))
x, y
-
expressions to be verified
f
transformer that will be applied to x and y before verification
verification
(optional) verification to be used
other, arguments
(optional) arguments passed to f after x or y
The verify(x, y, after(f)) calling sequence returns true if f(x) and f(y) are equal.
The verify(x, y, after(f, ver, other, arguments)) calling sequence returns true if f(x, other, arguments) and f(y, other, arguments) compare as equal under the verification verification.
If you want to specify extra arguments to be passed to f, you must specify verification, too. The default verification is boolean, which tests for equality.
To see if two values have the same absolute value, you could use the verification after(abs).
a≔−5
b≔3+4⁢I
verify⁡a,b,after⁡abs
true
To see if two expressions are the same, except for the arguments to the function f, you can use this verification. Note that we have to explicitly have to specify the boolean verification in order to pass extra arguments to subsindets.
a≔2+sin⁡f⁡3,4⁢f⁡5
b≔2+sin⁡f⁡1⁢f⁡2,6
verify⁡a,b,after⁡subsindets,boolean,specfunc⁡f,fx↦f⁡
To see if two lists are the same when considered as sets, except for arguments to the function f, use a variation on the previous calling sequence that uses the as_set verification.
a≔2+sin⁡f⁡3,4⁢f⁡5,f⁡2+cos⁡x
b≔cos⁡x+f⁡3,5,sin⁡f⁡2,5⁢f⁡6+2
verify⁡a,b,after⁡subsindets,as_set,specfunc⁡f,fx↦f⁡
The verify/after command was introduced in Maple 2021.
For more information on Maple 2021 changes, see Updates in Maple 2021.
See Also
verify
verify,structured
Download Help Document