From 64952744877465b31d766f22384e118e0209af5b Mon Sep 17 00:00:00 2001 From: "R. Bernstein" Date: Wed, 6 Nov 2024 15:57:25 -0700 Subject: [PATCH] Two small changes (#1157) * Remove unwanted hard-breaks in Eigenvalues * add `__all__` for imports in mathics.doc.common_doc --- mathics/builtin/numbers/linalg.py | 8 ++++--- mathics/doc/common_doc.py | 39 +++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+), 3 deletions(-) diff --git a/mathics/builtin/numbers/linalg.py b/mathics/builtin/numbers/linalg.py index d670c4727..69e48b873 100644 --- a/mathics/builtin/numbers/linalg.py +++ b/mathics/builtin/numbers/linalg.py @@ -106,9 +106,11 @@ class Eigenvalues(Builtin):
'Eigenvalues[$m$]'
computes the eigenvalues of the matrix $m$. - By default Sympy's routine is used. Sometimes this is slow and - less good than the corresponding mpmath routine. Use option Method->"mpmath" if you want - to use mpmath's routine instead. + + By default, Sympy's routine is used. Sometimes this is slow and \ + less good than the corresponding mpmath routine. + + Use option Method->"mpmath" if you want to use mpmath's routine instead.
Numeric eigenvalues are sorted in order of decreasing absolute value: diff --git a/mathics/doc/common_doc.py b/mathics/doc/common_doc.py index 7b845b934..a397b2b90 100644 --- a/mathics/doc/common_doc.py +++ b/mathics/doc/common_doc.py @@ -58,3 +58,42 @@ MathicsMainDocumentation, sorted_chapters, ) + +__all__ = [ + "ALLOWED_TAGS", + "ALLOWED_TAGS_RE", + "CONSOLE_RE", + "DL_ITEM_RE", + "DL_RE", + "DocChapter", + "DocGuideSection", + "DocPart", + "DocSection", + "DocSubsection", + "DocTest", + "DocTests", + "DocText", + "Documentation", + "DocumentationEntry", + "HYPERTEXT_RE", + "IMG_PNG_RE", + "IMG_RE", + "LATEX_RE", + "LIST_ITEM_RE", + "LIST_RE", + "MATHICS3_MODULES_TITLE", + "MATHICS_RE", + "MathicsMainDocumentation", + "PYTHON_RE", + "QUOTATIONS_RE", + "REF_RE", + "SPECIAL_COMMANDS", + "SUBSECTION_END_RE", + "SUBSECTION_RE", + "Tests", + "get_results_by_test", + "parse_docstring_to_DocumentationEntry_items", + "post_sub", + "pre_sub", + "sorted_chapters", +]