convert/set - Maple Help

Online Help

All Products    Maple    MapleSim


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

convert/set

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

convert( expr, set, nested_op )

Parameters

expr

-

expression to convert

nested_op

-

(optional) option of the form nested=true or false'; whether to preserve structure of rtables and arrays

Description

• 

This command can be used to convert a variety of expressions into set form.  The precise form of the result is determined by the input and the nested_op option.

• 

The nested_op option is only relevant if the input expr is an rtable (Matrix, Array, or Vector) or array, matrix, or vector.

Input type

nested option

Output form

rtable

nested=false

single-level (flattened) set

rtable

nested or nested=true

nested set with structure reflecting input (*)

array, matrix, vector

nested=false

single-level (flattened set)

array, matrix, vector

nested or nested=true

nested set with structure reflecting input

table

 

unordered set

string

 

set of characters (equivalent to StringTools[Explode] converted to set)

MultiSet

 

Members(expr)

other

 

{ op(expr) }

(*) If the rtable is 0-dimensional, the empty set is returned, rather than NULL.

Examples

convertabc,set

a,b,c

(1)

AArray3..4,1..1,0..3,i,j,k→j+ki:

convertA,set

0,1,13,14,12,13,14,23,34,43

(2)

convertA,set,nested

0,1,13,23,0,13,13,23,1,13,23,43,0,14,12,14,0,12,14,34,1,12,14,34

(3)

convertArray,set

(4)

convert1|2,3|4,set

1,2,3,4

(5)

convertfa,b,c,set

a,b,c

(6)

Compatibility

• 

The nested_op parameter was introduced in Maple 16.

• 

For more information on Maple 16 changes, see Updates in Maple 16.

See Also

convert

convert/list

StringTools[Explode]

 


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