Generateurv2/backend/env/lib/python3.10/site-packages/sympy/simplify/hyperexpand_doc.py

17 lines
432 B
Python
Raw Normal View History

2022-06-24 17:14:37 +02:00
""" This module cooks up a docstring when imported. Its only purpose is to
be displayed in the sphinx documentation. """
from sympy import latex, Eq, hyper
from sympy.simplify.hyperexpand import FormulaCollection
c = FormulaCollection()
doc = ""
for f in c.formulae:
obj = Eq(hyper(f.func.ap, f.func.bq, f.z),
f.closed_form.rewrite('nonrepsmall'))
doc += ".. math::\n %s\n" % latex(obj)
__doc__ = doc