after - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


verify/after

verify after calling a function

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

verify(x, y, 'after'(f, verification, other, arguments))

Parameters

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

Description

• 

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.

Examples

To see if two values have the same absolute value, you could use the verification after(abs).

a5

a−5

(1)

b3+4I

b3+4I

(2)

verifya,b,afterabs

true

(3)

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.

a2+sinf3,4f5

a2+sinf3,4f5

(4)

b2+sinf1f2,6

b2+sinf1f2,6

(5)

verifya,b,aftersubsindets,boolean,specfuncf,fxf

true

(6)

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.

a2+sinf3,4f5,f2+cosx

a2+sinf3,4f5,f2+cosx

(7)

bcosx+f3,5,sinf2,5f6+2

bcosx+f3,5,sinf2,5f6+2

(8)

verifya,b,aftersubsindets,as_set,specfuncf,fxf

true

(9)

Compatibility

• 

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