mathtools


Lineage

digraph InheritanceGraph { graph [bgcolor=transparent, color=lightslategrey, dpi=72, fontname=Arial, outputorder=edgesfirst, overlap=prism, penwidth=2, rankdir=LR, root="__builtin__.object", splines=spline, style="dotted, rounded", truecolor=true]; node [colorscheme=pastel19, fontname=Arial, fontsize=12, penwidth=2, style="filled, rounded"]; edge [color=lightsteelblue2, penwidth=2]; subgraph cluster_abctools { graph [label=abctools]; "abjad.tools.abctools.AbjadObject.AbjadObject" [color=1, group=0, label=AbjadObject, shape=box]; "abjad.tools.abctools.AbjadObject.AbstractBase" [color=1, group=0, label=AbstractBase, shape=box]; "abjad.tools.abctools.AbjadValueObject.AbjadValueObject" [color=1, group=0, label=AbjadValueObject, shape=box]; "abjad.tools.abctools.AbjadObject.AbjadObject" -> "abjad.tools.abctools.AbjadValueObject.AbjadValueObject"; "abjad.tools.abctools.AbjadObject.AbstractBase" -> "abjad.tools.abctools.AbjadObject.AbjadObject"; } subgraph cluster_mathtools { graph [label=mathtools]; "abjad.tools.mathtools.BoundedObject.BoundedObject" [color=black, fontcolor=white, group=2, label=BoundedObject, shape=box, style="filled, rounded"]; "abjad.tools.mathtools.Infinity.Infinity" [color=black, fontcolor=white, group=2, label=Infinity, shape=box, style="filled, rounded"]; "abjad.tools.mathtools.NegativeInfinity.NegativeInfinity" [color=black, fontcolor=white, group=2, label=NegativeInfinity, shape=box, style="filled, rounded"]; "abjad.tools.mathtools.NonreducedFraction.NonreducedFraction" [color=black, fontcolor=white, group=2, label=NonreducedFraction, shape=box, style="filled, rounded"]; "abjad.tools.mathtools.NonreducedRatio.NonreducedRatio" [color=black, fontcolor=white, group=2, label=NonreducedRatio, shape=box, style="filled, rounded"]; "abjad.tools.mathtools.Ratio.Ratio" [color=black, fontcolor=white, group=2, label=Ratio, shape=box, style="filled, rounded"]; "abjad.tools.mathtools.Infinity.Infinity" -> "abjad.tools.mathtools.NegativeInfinity.NegativeInfinity"; "abjad.tools.mathtools.NonreducedRatio.NonreducedRatio" -> "abjad.tools.mathtools.Ratio.Ratio"; } subgraph cluster_timespantools { graph [label=timespantools]; "abjad.tools.timespantools.AnnotatedTimespan.AnnotatedTimespan" [color=5, group=4, label=AnnotatedTimespan, shape=box]; "abjad.tools.timespantools.Timespan.Timespan" [color=5, group=4, label=Timespan, shape=box]; "abjad.tools.timespantools.Timespan.Timespan" -> "abjad.tools.timespantools.AnnotatedTimespan.AnnotatedTimespan"; } subgraph cluster_builtins { graph [label=builtins]; "builtins.object" [color=2, group=1, label=object, shape=box]; } subgraph cluster_quicktions { graph [label=quicktions]; "quicktions.Fraction" [color=4, group=3, label=Fraction, shape=box]; } "abjad.tools.abctools.AbjadObject.AbjadObject" -> "abjad.tools.mathtools.BoundedObject.BoundedObject"; "abjad.tools.abctools.AbjadObject.AbjadObject" -> "abjad.tools.mathtools.Infinity.Infinity"; "abjad.tools.abctools.AbjadObject.AbjadObject" -> "abjad.tools.mathtools.NonreducedFraction.NonreducedFraction"; "abjad.tools.abctools.AbjadValueObject.AbjadValueObject" -> "abjad.tools.mathtools.NonreducedRatio.NonreducedRatio"; "abjad.tools.mathtools.BoundedObject.BoundedObject" -> "abjad.tools.timespantools.Timespan.Timespan"; "builtins.object" -> "abjad.tools.abctools.AbjadObject.AbstractBase"; "builtins.object" -> "quicktions.Fraction"; "quicktions.Fraction" -> "abjad.tools.mathtools.NonreducedFraction.NonreducedFraction"; }


Classes

BoundedObject Bounded object mix-in.
Infinity Infinity.
NegativeInfinity Negative infinity.
NonreducedFraction Nonereduced fraction.
NonreducedRatio Nonreduced ratio.
Ratio Ratio.

Functions

all_are_equal Is true when argument is an iterable collection of equal items.
all_are_integer_equivalent Is true when argument is an iterable collection with integer-equivalent items.
all_are_integer_equivalent_numbers Is true when argument is an iterable collection with integer-equivalent items.
all_are_nonnegative_integer_equivalent_numbers Is true when argument is an iterable collection of nonnegative integer-equivalent numbers.
all_are_nonnegative_integer_powers_of_two Is true when argument is an iterable collection of nonnegative integer powers of two.
all_are_nonnegative_integers Is true when argument is an iterable collection of nonnegative integers.
all_are_numbers Is true when argument is an iterable collection of numbers.
all_are_pairs Is true when argument is an iterable collection of pairs.
all_are_pairs_of_types Is true when argument is an iterable collection whose members are all of length 2, and where the first member of each pair is an instance of first_type and where the second member of each pair is an instance of second_type.
all_are_positive_integer_equivalent_numbers Is true when argument is an iterable collection of positive integer-equivalent numbers.
all_are_positive_integer_powers_of_two Is true when argument is an iterable collection of positive integer powers of two.
all_are_positive_integers Is true when argument is an iterable collection of positive integers.
all_are_unequal Is true when argument is an iterable collection of unequal items.
are_relatively_prime Is true when argument is an iterable collection of relative primes.
arithmetic_mean Gets arithmetic mean of argument.
binomial_coefficient Gets binomial coefficient of n choose k.
cumulative_products Gets cumulative products of argument.
cumulative_signed_weights Gets cumulative signed weights of argument.
cumulative_sums Gets cumulative sums of argument.
cumulative_sums_pairwise Gets pairwise cumulative sums of argument from zero.
difference_series Gets difference series of argument.
divide_number_by_ratio Divides number by ratio.
divisors Gets positive divisors of n in increasing order.
factors Gets prime factors less than or equal to n .
fraction_to_proper_fraction Changes rational to proper fraction.
get_shared_numeric_sign Gets shared numeric sign of items in argument.
greatest_common_divisor Calculates greatest common divisor of integers.
greatest_multiple_less_equal Gets greatest integer multiple of m less than or equal to n.
greatest_power_of_two_less_equal Gets greatest integer power of two less than or equal to positive n.
integer_equivalent_number_to_integer Changes integer-equivalent number to integer.
integer_to_base_k_tuple Changes nonnegative integer n to base-k tuple.
integer_to_binary_string Changes positive integer n to binary string.
is_assignable_integer Is true when argument is equivalent to an integer that can be written without recourse to ties.
is_dotted_integer Is true when argument is equivalent to a positive integer and can be written with zero or more dots.
is_fraction_equivalent_pair Is true when argument is an integer-equivalent pair of numbers excluding 0 as the second term.
is_integer_equivalent Is true when argument is an integer-equivalent number.
is_integer_equivalent_n_tuple Is true when argument is a tuple of n integer-equivalent items.
is_integer_equivalent_number Is true when argument is a number and argument is equivalent to an integer.
is_integer_equivalent_pair Is true when argument is a pair of integer-equivalent items.
is_integer_equivalent_singleton Is true when argument is a singleton of integer-equivalent items.
is_integer_n_tuple Is true when argument is an integer tuple of length n.
is_integer_pair Is true when argument is an integer tuple of length 2.
is_integer_singleton Is true when argument is an integer tuple of of length 1.
is_n_tuple Is true when argument is a tuple of length n.
is_negative_integer Is true when argument equals a negative integer.
is_nonnegative_integer Is true when argument equals a nonnegative integer.
is_nonnegative_integer_equivalent_number Is true when argument is a nonnegative integer-equivalent number.
is_nonnegative_integer_power_of_two Is true when argument is a nonnegative integer power of 2.
is_null_tuple Is true when argument is a tuple of length 0.
is_pair Is true when argument is a tuple of length 2.
is_positive_integer Is true when argument equals a positive integer.
is_positive_integer_equivalent_number Is true when argument is a positive integer-equivalent number.
is_positive_integer_power_of_two Is true when argument is a positive integer power of 2.
is_singleton Is true when argument is a tuple of length 1.
least_common_multiple Gets least common multiple of positive integers.
least_multiple_greater_equal Gets least integer multiple of m greater than or equal to n.
least_power_of_two_greater_equal Gets least integer power of two greater than or equal to positive n.
next_integer_partition Gets next integer partition following integer_partition in descending lex order.
partition_integer_by_ratio Partitions positive integer-equivalent n by ratio.
partition_integer_into_canonic_parts Partitions integer n into canonic parts.
partition_integer_into_halves Partitions n into halves.
partition_integer_into_parts_less_than_double Partitions integer n into parts less than double integer m.
partition_integer_into_units Partitions integer n into units.
remove_powers_of_two Removes powers of 2 from the factors of positive integer n.
sign Gets sign of n.
weight Gets weight of argument.
yield_all_compositions_of_integer Yields all compositions of positive integer n.
yield_all_partitions_of_integer Yields all partitions of positive integer n in descending lex order.
yield_nonreduced_fractions Yields positive nonreduced fractions in Cantor diagonalized order.