maple - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


convert/maple

convert a foreign object to a Maple expression

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

convert( expr, maple )

Parameters

expr

-

expression to convert

Description

• 

The convert(expr, maple) function converts a foreign expression expr into a Maple expression. If expr is already a Maple expression, this conversion has no effect.

Examples

> 

pyt≔Python:-EvalString⁡{'city' : 'Montevideo', 'country' : 'Uruguay'}

pyt≔<Python object: {'city': 'Montevideo', 'country': 'Uruguay'}>

(1)
> 

type⁡pyt&comma;python

true

(2)
> 

T≔convert⁡pyt&comma;maple

T≔table⁡country=Uruguay&comma;city=Montevideo

(3)
> 

type⁡T&comma;maple

true

(4)

Compatibility

• 

The convert/maple command was introduced in Maple 2023.

• 

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

See Also

type/maple

type/python