Sign, Exponented numerator, Exponented denominator, exponent. More...
Public Member Functions | |
def | __init__ |
Constructor. | |
def | __str__ |
Raw display of the Quotient (debugging method). | |
def | __len__ |
Returns the Quotient's length It is used in Product.make_string(), changing it will have consequences on sheets like Fractions Products & Quotients. | |
def | is_numeric |
True if the Quotient contains only numeric Exponenteds. | |
def | is_literal |
True if the Quotient contains only literal Exponenteds. | |
def | is_null |
True if the numerator is null. | |
def | is_negative |
True if the sign before the Quotient is '-'. | |
def | is_positive |
True if the sign before the Quotient is '+'. | |
def | is_equivalent_to_a_single_1 |
True if the Quotient contains only single 1-equivalent Calcs. | |
def | is_equivalent_to_a_single_minus_1 |
True if the Quotient can be displayed as a single -1 If the Quotient is negative and its numerator and both are equivalent to single 1. | |
def | is_equivalent_to_a_single_0 |
True if the Quotient can be displayed as a single 0 If the numerator is equivalent to a single 0. | |
def | is_equivalent_to_a_single_numeric_Item |
True if the object is or only contains one numeric Item. | |
def | is_equivalent_to_an_irreducible_Fraction |
True if the object is or only contains one irreducible Fraction. | |
def | multiply_symbol_is_required |
True if the usual writing rules require a × between two factors. | |
def | requires_brackets |
True if the argument requires brackets in a product For instance, a Sum with several terms or a negative Item. | |
def | requires_inner_brackets |
True if the argument requires inner brackets The reason for requiring them is having an exponent different from 1. | |
def | contains_exactly |
True if the Quotient contains exactly the given objct It can be used to detect objects embedded in this Quotient (with a denominator equal to 1). | |
def | contains_a_rounded_number |
To check if this contains a rounded number. | |
def | get_sign |
Returns the sign of the Quotient. | |
def | get_minus_signs_nb |
Gets the number of '-' signs of the Quotient. | |
def | evaluate |
Returns the value of a numerically evaluable object. | |
def | invert |
Returns the inverted Quotient. | |
def | calculate_next_step |
Returns the Quotient in the next step of simplification. | |
def | make_string |
Creates a string of the given object in the given ML. |
Sign, Exponented numerator, Exponented denominator, exponent.
Definition at line 6129 of file __init__.py.
def obj::calc::Quotient::__init__ | ( | self, | ||
arg, | ||||
options | ||||
) |
Constructor.
arg | Quotient|(sign, num, deno [, exponent [, symbol]]) If the argument isn't of the kinds listed above, an exception will be raised. | |
options | Can be use_divide_symbol |
Reimplemented in obj::calc::Fraction.
Definition at line 6146 of file __init__.py.
def obj::calc::Quotient::__len__ | ( | self | ) |
Returns the Quotient's length It is used in Product.make_string(), changing it will have consequences on sheets like Fractions Products & Quotients.
..
Definition at line 6232 of file __init__.py.
def obj::calc::Quotient::__str__ | ( | self, | ||
options | ||||
) |
Raw display of the Quotient (debugging method).
options | No option available so far |
Reimplemented in obj::calc::Fraction.
Definition at line 6211 of file __init__.py.
def obj::calc::Quotient::calculate_next_step | ( | self, | ||
options | ||||
) |
Returns the Quotient in the next step of simplification.
Reimplemented from obj::calc::Exponented.
Reimplemented in obj::calc::Fraction.
Definition at line 6533 of file __init__.py.
def obj::calc::Quotient::contains_a_rounded_number | ( | self | ) |
To check if this contains a rounded number.
..
Reimplemented from obj::calc::Exponented.
Definition at line 6455 of file __init__.py.
def obj::calc::Quotient::contains_exactly | ( | self, | ||
objct | ||||
) |
True if the Quotient contains exactly the given objct It can be used to detect objects embedded in this Quotient (with a denominator equal to 1).
objct | The object to search for |
Reimplemented from obj::calc::Exponented.
Definition at line 6433 of file __init__.py.
def obj::calc::Quotient::get_minus_signs_nb | ( | self | ) |
Gets the number of '-' signs of the Quotient.
Reimplemented from obj::calc::Exponented.
Definition at line 6484 of file __init__.py.
def obj::calc::Quotient::is_equivalent_to_a_single_1 | ( | self | ) |
True if the Quotient contains only single 1-equivalent Calcs.
So, if the Quotient has a positive sign and if its numerator and both are equivalent to single 1.
Reimplemented from obj::calc::Calculable.
Definition at line 6310 of file __init__.py.
def obj::calc::Quotient::is_equivalent_to_a_single_minus_1 | ( | self | ) |
True if the Quotient can be displayed as a single -1 If the Quotient is negative and its numerator and both are equivalent to single 1.
Reimplemented from obj::calc::Calculable.
Definition at line 6329 of file __init__.py.
def obj::calc::Quotient::is_negative | ( | self | ) |
True if the sign before the Quotient is '-'.
Definition at line 6278 of file __init__.py.
def obj::calc::Quotient::is_positive | ( | self | ) |
True if the sign before the Quotient is '+'.
Definition at line 6293 of file __init__.py.
def obj::calc::Quotient::make_string | ( | self, | ||
markup, | ||||
options | ||||
) |
Creates a string of the given object in the given ML.
markup | The markup dictionary to use | |
options | Any options |
Reimplemented from obj::Printable.
Definition at line 6599 of file __init__.py.
def obj::calc::Quotient::multiply_symbol_is_required | ( | self, | ||
objct, | ||||
position | ||||
) |
True if the usual writing rules require a × between two factors.
objct | The other one | |
position | The position (integer) of self in the Product |
Reimplemented from obj::calc::Exponented.
Definition at line 6383 of file __init__.py.
def obj::calc::Quotient::requires_brackets | ( | self, | ||
position | ||||
) |
True if the argument requires brackets in a product For instance, a Sum with several terms or a negative Item.
position | The position of the object in the Product |
Reimplemented from obj::calc::Exponented.
Definition at line 6404 of file __init__.py.
def obj::calc::Quotient::requires_inner_brackets | ( | self | ) |
True if the argument requires inner brackets The reason for requiring them is having an exponent different from 1.
Reimplemented from obj::calc::Exponented.
Definition at line 6419 of file __init__.py.