mathmaker
0.6(alpha)
|
Signed objects: CommutativeOperations (Sums&Products), Items, Quotients... More...
Public Member Functions | |
def | __init__ |
Constructor. | |
def | get_minus_signs_nb |
Returns the number of minus signs in the object. | |
def | get_sign |
Returns the sign of the object. | |
def | set_sign |
Set the sign of the object. | |
def | set_opposite_sign |
Changes the sign of the object. | |
def | is_negative |
True if object's *sign* is '-' (ie -(-1) would be "negative") | |
def | is_positive |
True if object's *sign* is '+'. | |
Properties | |
sign |
Signed objects: CommutativeOperations (Sums&Products), Items, Quotients...
Any Signed must have a sign field
Definition at line 367 of file root_calculus.py.
def core.root_calculus.Signed.__init__ | ( | self | ) |
Constructor.
Reimplemented from core.base.NamedObject.
Reimplemented in core.base_calculus.CommutativeOperation, core.base_calculus.Operation, and core.root_calculus.Exponented.
Definition at line 375 of file root_calculus.py.
References core.base_calculus.Item._sign, core.root_calculus.Signed._sign, core.base_calculus.Function._sign, core.base_calculus.SquareRoot._sign, core.base_calculus.Quotient._sign, and core.base_calculus.Fraction._sign.
Referenced by core.root_calculus.Value.substitute().
def core.root_calculus.Signed.set_sign | ( | self, | |
arg | |||
) |
Set the sign of the object.
arg | String being '+' or '-' or number being +1 or -1 |
Reimplemented in core.base_calculus.CommutativeOperation, and core.root_calculus.Value.
Definition at line 410 of file root_calculus.py.
References core.base_calculus.Item._sign, core.root_calculus.Signed._sign, core.base_calculus.Function._sign, core.base_calculus.SquareRoot._sign, core.base_calculus.Quotient._sign, and core.base_calculus.Fraction._sign.
Referenced by core.base_calculus.Fraction.calculate_next_step(), core.base_calculus.Fraction.set_down_numerator_s_minus_sign(), core.root_calculus.Signed.set_opposite_sign(), core.root_calculus.Value.set_opposite_sign(), and core.base_calculus.Fraction.simplification_line().
core::root_calculus.Signed::sign [static] |
property(get_sign,
doc = "Sign of the object")
Definition at line 398 of file root_calculus.py.
Referenced by core.root_calculus.Value.__hash__(), core.base_calculus.Operation.__hash__(), core.base_calculus.Product.__hash__(), core.root_calculus.Signed.is_negative(), core.root_calculus.Signed.is_positive(), core.root_calculus.Signed.set_opposite_sign(), and core.root_calculus.Value.set_opposite_sign().