__hash__
compute hash of Expression
Calling Sequence
Parameters
Description
Examples
x.__hash__()
hash(x)
x
-
Expression object
__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).
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)
See Also
OpenMaple
OpenMaple/Python/API
OpenMaple/Python/Expression
Download Help Document