Import - Maple Help

Online Help

All Products    Maple    MapleSim


Logic

  

Import

  

express in terms of Logic package operators

 

Calling Sequence

Parameters

Description

Available Conversions

Examples

Calling Sequence

Import(expr, {form})

Parameters

expr

-

expression

form

-

expression where form=MOD2 or form=boolean

Description

• 

The Import command transforms a Maple expression of a specified type into one suitable for use by the Logic package.

Available Conversions

  

The following conversions are available (form must be one of these).

• 

MOD2:  An input polynomial is converted to a boolean expression by mapping multiplication to &and, addition to &xor, 1 to true, and 0 to false.

• 

boolean: Any ternary logical operators (for example, and, or, and not) present in the expression are replaced with the equivalent Logic package operators.

Examples

withLogic:

Importaorborc,form=boolean

abc

(1)

Importnotaxorbc,form=boolean

¬abc

(2)

Importxy+1+z+1,form=MOD2

¬x¬yz

(3)

See Also

boolean

Logic

Logic,operators

Logic[Export]