Mother class of all expandable objects. More...
Public Member Functions | |
| def | __init__ |
| Constructor. | |
| def | is_expandable |
| True. | |
| 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. | |
Mother class of all expandable objects.
Definition at line 8294 of file __init__.py.
| def obj::calc::Expandable::__init__ | ( | self, | ||
| arg, | ||||
| options | ||||
| ) |
Constructor.
| arg | (Exponented, Exponented)|(__.RANDOMLY, <type>) Types details :
| |
| options | reversed|randomly_reversed=<nb> Options details :
|
Reimplemented in obj::calc::BinomialIdentity.
Definition at line 8315 of file __init__.py.
| def obj::calc::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 8490 of file __init__.py.
| def obj::calc::Expandable::is_expandable | ( | self | ) |
True.
Reimplemented from obj::calc::Operation.
Definition at line 8435 of file __init__.py.
1.6.3