convert/and - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : Data Types : Conversion : convert/and

convert/and

convert list, set, expression to `and` form

convert/or

convert list, set to `or` form

convert/xor

convert list, set to `xor` form

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

convert(exprA, `and`)

convert(expr, `or`)

convert(expr, `xor`)

Parameters

exprA

-

list, set, or expression

expr

-

list or set

Description

• 

The convert/and command converts a given list, set, or expression to an `and` form. Given expr as a list [a1,a2,a3,...,an], convert/and converts the list into the form a1anda2anda3...andan. If the given list or set is empty, true is returned.

• 

The convert/or command converts a given list or set to an `or` form. Given expr as a list [a1,a2,a3,...,an], convert/or converts the list into the form a1ora2ora3...oran. If the given list or set is empty, false is returned.

• 

The convert/xor command converts a given list or set to an `xor` form. Given expr as a list [a1,a2,a3,...,an], convert/xor converts the list into the form a1xora2xora3...xoran. If the given list or set is empty, true is returned.

Examples

converta,b,c,`and`

aandbandc

(1)

convert,`and`

true

(2)

convertab,`and`

aandb

(3)

convertaorb,`and`

aandb

(4)

convertfa,b,`and`

aandb

(5)

convertabc,`and`

aandbandc

(6)

converta,b,c,`or`

aorborc

(7)

convert,`or`

false

(8)

converta,b,c,`xor`

axorbxorc

(9)

convert,`xor`

true

(10)

See Also

convert

 


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam