Files
mathgenerator/mathgenerator/__init__.py
Luke Weiler a2d2a1b0e9 No Generator class (#405)
* Create ids list

* rm Genimprt, rm inst in algebra + basic_math

* computer science and calculus no inst

* Remove instances from geometry

* remove instances from misc

* remove instances from permutations

* fix under indentations

* improve binary_complement_1s

* Remove generator.py

* initial docs setup

* move modules out of funcs, regen docs

* Move subjects to single files

* pdoc docs

* add make docs

* Remove mid-file imports, delete templates

* lint fixes

* Use math in docs

* remove format string from complex_quad

* regen docs

* Lint fix

* Hide non-generator modules from docs

* Hide utility methods from docs

* Created _gen_list.py

* Remove docs from readme

* replace tabs with 4 spaces

* lint fixes

* little docs changes

* docstrings for half of subjects

* Added example docs for remaining generators

* update docs

* Update intersection of two lines #408

* Snake case variables; for #406

* update docs

* Remove escaped backslashes; for #407

* autopep8

* lint fix

* lint fix

* remove gcd duplicates; for  #401

* Add missing delimiter for fraction_multiplication

* rebuild docs
2022-12-27 14:31:58 -05:00

32 lines
554 B
Python

"""
.. include:: ../README.md
"""
from .algebra import *
from .basic_math import *
from .calculus import *
from .computer_science import *
from .geometry import *
from .misc import *
from .statistics import *
from ._gen_list import gen_list
# [funcname, subjectname]
def get_gen_list():
return gen_list
def gen_by_id(id, *args, **kwargs):
return globals()[gen_list[id][0]](*args, **kwargs)
# Legacy Functions
def getGenList():
return gen_list
def genById(id, *args, **kwargs):
return globals()[gen_list[id][0]](*args, **kwargs)