Close
Close window
Import - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.
Maplesoft logo
Maplesoft logo

Online Help

All Products Maple MapleSim


[フレーム] [フレーム]

Logic

Import

express in terms of Logic package operators

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

>

with(Logic):

>

Import(a or b or c, form=boolean);

abc

(1)
>

Import(not (a xor b) implies c, form=boolean);

¬abc

(2)
>

Import(x*(y+1)+z+1, form=MOD2);

¬x¬yz

(3)


Download Help Document

AltStyle によって変換されたページ (->オリジナル) /