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

Home : Support : Online Help : OpenMaple/Python/Expression

Expression

Python representation of a Maple expression

Description

 • The maple.Expression class is the base class for every Python class representing a Maple object.  Its member functions provide the basic operations useful for any Maple object.

Method Summary

 • The following methods are defined on any Expression object and invoke the specified implementation in Maple.

 Method name Usage Maple implementation x.eval() eval function abs(x) abs function x+y addition x(...) function application ceil(x) complex(x) convert to complex float x==y float(x) apply evalf floor(x) apply floor floordiv(x,y) apply iquo x>=y x.y Maple name x:-y x>y hash(x) int(x) truncate when numeric x<=y len(x) compute length or numelems for containers xy neg(x) -x x**y exponentation y+x addition mod(y,x) y*x multiplication y**x exponentation y-x subtraction y/x y/x str(x) x-y subtraction x/y x/y trunc(x)

Direct Subclasses

 •
 •
 •