assign - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


assign

assign value to Maple name

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

x.assign(y)

Parameters

x

-

Name object

y

-

Expression object

Description

• 

The assign function assigns the Expression y to the Maple Name x.

Examples

The following interactive session illustrates the use of assign:

>>> import maple

>>> import maple.namespace

>>> x = maple.namespace.x

>>> x.assign(2)

See Also

OpenMaple

OpenMaple/Python/API

OpenMaple/Python/Expression

OpenMaple/Python/Name

OpenMaple/Python/Name/__getattr__