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

Online Help

All Products    Maple    MapleSim


__hash__

compute hash of Expression

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

x.__hash__()

hash(x)

Parameters

x

-

Expression object

Description

• 

__hash__ returns a hash value for the Expression x. The hash value is a Python integer which is session-specific.

• 

This function can also be hashed by simply entering hash(x).

Examples

The following interactive session illustrates the use of this operator.

>>> import maple

>>> import maple.namespace

>>> x = maple.namespace.x

>>> e = maple.execute( 'sin(x+y):' )

>>> hash(e)

139825065593760

>>> e1 = x  2 + 3  x + 2

>>> hash(e1)

139825064871360

>>> e2 = maple.namespace.expand( (x+1) * (x+2) )

>> hash(e2)

139825064871360

See Also

OpenMaple

OpenMaple/Python/API

OpenMaple/Python/Expression