1 Linear Expression Module
2 ========================
4 This class implements linear expressions.
6 .. py:method:: coefficient(self, symbol)
8 Return the coefficient value of the given symbol.
10 .. py:method:: coefficients(self)
12 Return a list of the coefficients of an expression
14 .. py:method:: constant(self)
16 Return the constant value of an expression.
18 .. py:method:: symbols(self)
20 Return a list of symbols in an expression.
22 .. py:method:: dimension(self)
24 Return the number of vriables in an expression.
26 .. py:method:: __sub__(self, other)
28 Return the difference between two expressions.
30 .. py:method:: subs(self, symbol, expression=None)
32 Subsitute the given value into an expression and return the resulting expression.
34 .. py:method:: fromsympy(self)
36 Convert sympy object to an expression.
38 .. py:method:: tosympy(self)
40 Return an expression as a sympy object.
42 .. py:class:: Dummy(Symbol)
44 This class returns a dummy symbol to ensure that each no variables are repeated in an expression