Mathmaker Doc for dev
Generator of maths worksheets and their detailed solutions
Status: Alpha
Brought to you by:
nico_h
This is the mother class of any operation in general. Sum, Product and Quotient all derive from Operation.
An operation has
Fields | Methods (provided) | Methods (must be reimplemented) |
---|---|---|
element | get_element() | operator() |
neutral | get_neutral() | |
symbol | get_symbol() | |
get_iteration_list() | ||
set_element() | ||
set_symbol() | ||
reset_element() | ||
__get_item__() | ||
__set_item__() | ||
is_expandable() | ||
is_numeric() | ||
is_literal() |
operator() has to be redefined in each instanciated operation (Sum, Product, Quotient). It will make the operation between self and arg and used by evaluate().