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

Online Help

All Products    Maple    MapleSim


verify/sign

verify for sign differences

 

Calling Sequence

Parameters

Options

Description

Examples

Compatibility

Calling Sequence

verify(expr1, expr2, 'sign')

verify(expr1, expr2, 'sign'(options))

Parameters

expr1, expr2

-

anything

Options

• 

evenfuncs=F where F is a function name or a list or set of function names

• 

oddfuncs=G where G is a function name or a list or set of function names

Description

• 

The verify(expr1, expr2, sign) calling sequence returns true if by means of applying any combination of the following transformations to subexpressions of expr1 and expr2 they can eventually be transformed into the same target expression:

1. 

xy  xy if x is of type `+`

2. 

an  an if n is an even integer

3. 

an  an if n is an odd integer

4. 

fa,...  fa,... if f is one of the even functions given in the option evenfuncs=F

5. 

ga,...  ga,... if g is one of the odd functions given in the option oddfuncs=G

  

and returns false otherwise.

• 

This verification not only ensures the expr1 and expr2 are mathematically equal but also that they have similar forms, which is a property that is not ensured by verifying with normal.

• 

The arguments expr1 and expr2 need not be algebraic.

• 

The symmetries defined by the optional arguments evenfuncs=F and oddfuncs=G are assumed to apply to the first argument of each given function, except in the case of piecewise functions where factoring out a sign means factoring it out of each branch (i.e. each of the value arguments) simultaneously.

• 

This verification is symmetric.

Examples

verifyxab,xba,sign

false

(1)

verifyxab,xba,sign

true

(2)

verifycosxab,cosxba,signevenfuncs=cos

true

(3)

verifyaIntsin11x,x,aIntsin1x1,x,signoddfuncs=Int,sin

true

(4)

p3xy2x2yxyy3xxy2+2x2y3xy

p3xy2xy+x2yy3xxy2+2x2y3xy

(5)

q3yx2xy+2yx2yxy22x

q3yx2xyx+2yxy22x+2y

(6)

verifyp,q,sign

false

(7)

verifyp,q,normal

true

(8)

Compatibility

• 

The verify/sign command was updated in Maple 2023.

See Also

type/algebraic

verify

verify/normal