Release 7.0.0 · Mathics3/mathics-core · GitHub
Some work was done here in support of planned future improvements like lazy loading of builtin functions. A bit of effort was also spent to modernize Python code and style, add more type annotations, remove spelling errors, and use newer versions of important software like SymPy and Python itself.
$MaxLengthIntStringConversion
Elements
ComplexExpand
(thanks to vitrun)ConjugateTranspose
LeviCivitaTensor
RealAbs
andRealSign
RealValuedNumberQ
Many formatting issues with the PDF file have been addressed. In particular, the spacing of section numbers in chapter and section table of contents has been increased. The margin space around builtin definitions has a also been increased. Numerous spelling corrections to the document have been applied.
The code to run doctests and produce LaTeX documentation has been revised and refactored to allow incremental builtin update, and to DRY the code.
Section Head-Related Operations is a new section off of “Expression Structure”. The title of the PDF has changed from Mathics to Mathics3 and the introduction has been updated and revised.
Compatibility
*Plot
does not show messages during the evaluation.Range[]
now handles a negativedi
PR #951- Improved support for
DirectedInfinity
andIndeterminate
. Graphics
andGraphics3D
including wrong primitives and
directives are shown with a pink background. In the Mathics-Django
interface, a tooltip error message is also shown.- Improving support for
$CharacterEncoding
. Now it is possible to
change it from inside the session.
Internals —
eval_abs
andeval_sign
extracted fromAbs
andSign
and added tomathics.eval.arithmetic
.- Maximum number of digits allowed in a string set to 7000 and can be adjusted using environment variable
MATHICS_MAX_STR_DIGITS
on Python versions that don’t adjust automatically (like pyston). - Real number comparisons implemented is based now in the internal implementation of
RealSign
. - For Python 3.11, the variable
$MaxLengthIntStringConversion
controls the maximum size of the literal conversion between large integers and Strings. - Older style non-appearing and non-pedagogical doctests have been converted to pytest
- Built-in code is directed explicitly rather than implicitly. This facilitates the ability to lazy load builtins or “autoload” them via GNU Emacs autoload.
- add mpmath lru cache
- Some works was done to make it possible so that in the future we can speed up initial loading and reduce the initial memory footprint
Bugs
Definitions
is compatible withpickle
.- Improved support for
Quantity
expressions, including conversions, formatting and arithmetic operations. Background
option forGraphics
andGraphics3D
is operative again.- Numeric comparisons against expressions involving
String
s; Issue #797) Switch[]
involvingInfinity
. Issue #956Outer[]
onSparseArray
. Issue #939ArrayQ[]
detectsSparseArray
PR #947BoxExpressionError
exceptions handled Issue. PR #970Derivative
evaluation ofTrue
,False
andList[]
corrected. PR #971, #973Combinatorica
package fixes. PR #974Exit[]
not working. PR #998BaseForm
is now listed as in$OutputForms
We now require an explicit call to a new functionimport_and_load_builtins()
. Previously loading was implicit and
indeterminate as to when this occurred as it was based on import order.
We need this so that we can support in the future lazy loading of builtin modules.
- Python 3.11 is now supported
- Sympy 1.12 is now supported