1 Linear Expression Module
2 ========================
5 This class implements linear expressions.
7 .. py:method:: coefficient(self, symbol)
9 Return the coefficient value of the given symbol.
11 .. py:method:: coefficients(self)
13 Return a list of the coefficients of an expression
15 .. py:method:: constant(self)
17 Return the constant value of an expression.
19 .. py:method:: symbols(self)
21 Return a list of symbols in an expression.
23 .. py:method:: dimension(self)
25 Return the number of vriables in an expression.
27 .. py:method:: __sub__(self, other)
29 Return the difference between two expressions.
31 .. py:method:: subs(self, symbol, expression=None)
33 Subsitute the given value into an expression and return the resulting expression.
35 .. py:method:: fromsympy(self)
37 Convert sympy object to an expression.
39 .. py:method:: tosympy(self)
41 Return an expression as a sympy object.
43 .. py:class:: Dummy(Symbol)
45 This class returns a dummy symbol to ensure that each no variables are repeated in an expression