mathmaker
0.6(alpha)
|
Mother class of all expandable objects. More...
Public Member Functions | |
def | __init__ |
Constructor. | |
def | expand |
The expanded object, like 2×(x+3) would return 2×x + 2×3. | |
def | expand_and_reduce_ |
The expanded & reduced object, like 2×(x+3) would return 2x + 6 Take care that the resulting Sum might not be reduced itself. | |
def | expand_and_reduce_next_step |
Returns the expanded object as a Sum. | |
def | is_expandable |
True. | |
Public Attributes | |
str_openmark | |
str_closemark |
Mother class of all expandable objects.
Definition at line 8215 of file base_calculus.py.
def core.base_calculus.Expandable.__init__ | ( | self, | |
arg, | |||
options | |||
) |
Constructor.
arg | (Exponented, Exponented)|(RANDOMLY, <type>) (randomly) types details :
|
options | reversed|randomly_reversed=<nb> Options details :
|
Reimplemented in core.base_calculus.BinomialIdentity.
Definition at line 8237 of file base_calculus.py.
References core.base_calculus.CommutativeOperation._compact_display, core.base_calculus.Product._compact_display, core.base_calculus.Sum._compact_display, core.base_calculus.Monomial._compact_display, core.base_calculus.Expandable._compact_display, core.base_calculus.CommutativeOperation._info, core.base_calculus.Monomial._info, core.base_calculus.Expandable._info, core.base_calculus.Operation._neutral, core.base_calculus.Product._neutral, core.base_calculus.Sum._neutral, core.base_calculus.Monomial._neutral, core.base_calculus.Polynomial._neutral, core.base_calculus.Expandable._neutral, core.base_calculus.Operation._symbol, core.base_calculus.Quotient._symbol, core.base_calculus.Fraction._symbol, core.base_calculus.Product._symbol, core.base_calculus.Sum._symbol, core.base_calculus.Expandable._symbol, core.base.Clonable.clone(), core.base_calculus.Product.factor, core.base_calculus.Product.is_displ_as_a_single_1(), core.base_calculus.Operation.reset_element(), core.base_calculus.CommutativeOperation.str_closemark, core.base_calculus.Product.str_closemark, core.base_calculus.Sum.str_closemark, core.base_calculus.Expandable.str_closemark, core.base_calculus.CommutativeOperation.str_openmark, core.base_calculus.Product.str_openmark, core.base_calculus.Sum.str_openmark, and core.base_calculus.Expandable.str_openmark.
Referenced by core.calculus.Equation.__init__(), and core.root_calculus.Value.substitute().
def core.base_calculus.Expandable.expand_and_reduce_ | ( | self | ) |
The expanded & reduced object, like 2×(x+3) would return 2x + 6 Take care that the resulting Sum might not be reduced itself.
For instance, (3 + x)(2x - 5) would return 6x - 15 + 2x² - 5x The rest of the calculation has to be done with the Sum's reduction method ?
Definition at line 8411 of file base_calculus.py.
References core.base_calculus.Expandable.expand().
def core.base_calculus.Expandable.is_expandable | ( | self | ) |
True.
Reimplemented from core.base_calculus.Operation.
Definition at line 8467 of file base_calculus.py.