MOAL.maths package

Submodules

MOAL.maths.big_o module

MOAL.maths.big_o.o_1(*args, **kwargs)[source]
MOAL.maths.big_o.o_2n(*args, **kwargs)[source]
MOAL.maths.big_o.o_log_n(*args, **kwargs)[source]
MOAL.maths.big_o.o_n(*args, **kwargs)[source]
MOAL.maths.big_o.o_n2(*args, **kwargs)[source]
MOAL.maths.big_o.o_n3(*args, **kwargs)[source]
MOAL.maths.big_o.o_n_comprehension(*args, **kwargs)[source]
MOAL.maths.big_o.o_n_factorial(*args, **kwargs)[source]

MOAL.maths.fuzzy_sets module

MOAL.maths.number_theory module

MOAL.maths.number_theory.absorption_lcm_laws(a, b)[source]
MOAL.maths.number_theory.associative_lcm_laws(a, b, c)[source]
MOAL.maths.number_theory.commutative_lcm_laws(a, b)[source]
MOAL.maths.number_theory.cube(max_nums)[source]
MOAL.maths.number_theory.even(max_nums)[source]
MOAL.maths.number_theory.exercise_1_2(max_nums)[source]
MOAL.maths.number_theory.exercise_2_8(max_nums)[source]
MOAL.maths.number_theory.exp(max_nums)[source]
MOAL.maths.number_theory.exp_custom(max_nums, power)[source]
MOAL.maths.number_theory.factor(num)[source]
MOAL.maths.number_theory.factor_factorials(max_nums)[source]
MOAL.maths.number_theory.factorial(n)[source]
MOAL.maths.number_theory.factorials(max_nums)[source]
MOAL.maths.number_theory.fibo(max_nums)[source]
MOAL.maths.number_theory.gcd(a, b)[source]
MOAL.maths.number_theory.idempotent_lcm_laws(a, b)[source]
MOAL.maths.number_theory.lcm(a, b)[source]
MOAL.maths.number_theory.lg(max_nums)[source]
MOAL.maths.number_theory.lg_custom(max_nums, base)[source]
MOAL.maths.number_theory.odd(max_nums)[source]
MOAL.maths.number_theory.rand(max_nums)[source]
MOAL.maths.number_theory.square(max_nums)[source]
MOAL.maths.number_theory.test_number(*args)[source]
MOAL.maths.number_theory.triangle(max_nums)[source]

MOAL.maths.probability module

exception MOAL.maths.probability.NotInGroupException[source]

Bases: exceptions.Exception

class MOAL.maths.probability.Probability[source]
static _fmt(res, count)
static _percentages(count, divisor)
static of_group(values, subset, are_equal=True)
static of_single(values, are_equal=True)
MOAL.maths.probability._test(*args)[source]
MOAL.maths.probability.coin_flip(count=1000)[source]
MOAL.maths.probability.get_results(values, runs=100)[source]
MOAL.maths.probability.test_coin_flip(*args)[source]

MOAL.maths.set_theory module

class MOAL.maths.set_theory.Aleph(cardinality)[source]

Bases: MOAL.maths.set_theory.Set

__init__(cardinality)
run_until(maximum)
class MOAL.maths.set_theory.AlephNull[source]

Bases: MOAL.maths.set_theory.Aleph

__init__()
__iter__()
class MOAL.maths.set_theory.AlephOmega[source]

Bases: MOAL.maths.set_theory.Aleph

__init__()
class MOAL.maths.set_theory.AlephOne[source]

Bases: MOAL.maths.set_theory.Aleph

__init__()
class MOAL.maths.set_theory.AllOdds[source]

Bases: MOAL.maths.set_theory.AlephNull

__init__()
__iter__()
class MOAL.maths.set_theory.AllSquares[source]

Bases: MOAL.maths.set_theory.AlephNull

__init__()
__iter__()
class MOAL.maths.set_theory.BethOne(cardinality)[source]

Bases: MOAL.maths.set_theory.Aleph

class MOAL.maths.set_theory.Set(items)[source]

Bases: object

__getitem__(value)
__init__(items)
__setitem__(value)
__str__()
add(item)
cardinality()
is_series()
is_successor(prev, next)