__call__
invoke Expression as function
Calling Sequence
Parameters
Description
Examples
x.__call__(y)
x(y)
x
-
Expression object
y
zero or more arguments
__call__ invokes the expression x as a function and returns the result from the Maple session, which may be an Expression or a Python object.
This function can also be called by simply entering x(...).
The following interactive session illustrates the use of this operator.
>>> import maple
>>> import maple.namespace
>>> x,y,diff,dsolve = maple.symbols(x,y,diff,dsolve)
>>> deq = { diff(y(x), x) == y(x), y(0) == 1 }
>>> # It is most natural to use dsolve directly as a function
>>> dsolve( deq );
y(x)=exp(x)
>>> # It may, however, also be used with the expr.methodName syntax
>>> dsolve.__call__( deq );
See Also
OpenMaple
OpenMaple/Python/API
OpenMaple/Python/Expression
Download Help Document