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

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Mathematics : Logic : Canonicalize

Logic

  

Canonicalize

  

get a canonical representation of an expression

 

Calling Sequence

Parameters

Description

Available Canonical Forms

Examples

Calling Sequence

Canonicalize(b, alpha, form)

Parameters

b

-

Boolean expression

alpha

-

(optional) set or list of names

form

-

(optional) expression of the form form=fname

Description

• 

The Canonicalize command converts the given boolean expression to a canonical form.

• 

The canonical form used is determined by the form=fname option. The default value for this option is DNF.

• 

The canonical form is given with respect to the names given in alpha.  Note that alpha is necessary when the form chosen is CNF or DNF.

Available Canonical Forms

  

The following is a list of available canonical forms.

• 

MOD2  - The Boolean expression is converted to its equivalent modulo 2 canonical form.

• 

CNF - The conjunctive normal form is returned.

• 

DNF - The disjunctive normal form is returned.

Examples

withLogic:

Canonicalizea&andb,a,b,c

abcab¬c

(1)

Canonicalizea&xorb,form=MOD2

a+b

(2)

Canonicalizea&xorb,a,b,form=CNF

ab¬a¬b

(3)

Canonicalizea&xorb,a,b,form=DNF

a¬bb¬a

(4)

See Also

Logic

Logic/BooleanSimplify

Logic/Normalize