Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feyncalc fixes #1346

Draft
wants to merge 26 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
0026004
starting
mmatera Apr 9, 2021
74165e4
Merge branch 'sparsearray' into coeffarrays
mmatera Apr 9, 2021
1d6b468
deactivate CoefficientArrays
mmatera Apr 9, 2021
3a78500
Implement Collect
mmatera Apr 26, 2021
097340c
Merge remote-tracking branch 'upstream/master' into coeffarrays
mmatera Apr 26, 2021
85c29fa
implementing CoefficientsArray
mmatera Apr 26, 2021
1ab29a8
removing output type
mmatera Apr 26, 2021
ce1d9ff
Merge remote-tracking branch 'upstream/master' into coeffarrays
mmatera Apr 27, 2021
c82e586
Merge remote-tracking branch 'upstream/master' into coeffarrays
mmatera Apr 28, 2021
1712ce9
Add drawing and numbers builtin submodules
rocky Apr 26, 2021
2ae5519
Disable cythonization of submodule files
rocky Apr 26, 2021
4e1bcdb
Add more builtin modules
rocky Apr 27, 2021
f7d4cfa
Correct builtin numeric imports
rocky Apr 29, 2021
b828610
disable test_get_and_put() on win32
rocky Apr 29, 2021
0a6faba
adding tests
mmatera Apr 12, 2021
4a8755f
merge
mmatera May 1, 2021
dbace9b
catch malformed Pattern
mmatera May 1, 2021
4f3c3af
Merge branch 'fix-matchq-errorhandler' into HEAD
mmatera May 1, 2021
10967d3
Merge remote-tracking branch 'upstream/improveexpand-rebase' into HEAD
mmatera May 1, 2021
66762ac
Merge branch 'coeffarrays' into feyncalcfixes
mmatera May 1, 2021
d702b8c
fixing comments
mmatera May 1, 2021
44e7698
Merge branch 'predicate-processing-rebase' into feyncalcfixes
mmatera May 1, 2021
f0e9cb4
first try: implementing <<precompiled>> Dispatch tables
mmatera May 3, 2021
916a8a7
Merge remote-tracking branch 'upstream/master' into Dispatch2
mmatera May 3, 2021
75c1cbf
merge
mmatera May 3, 2021
1c47d96
Merge branch 'Dispatch2' into FeyncalcFixes
mmatera May 3, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ New variables and builtins
++++++++++++++++++++++++++

* ``Arg``
* ``CoefficientArrays`` and ``Collect`` (#1174, #1194)
* ``Dispatch``
* ``FullSimplify``
* ``LetterNumber`` #1298. The ``alphabet`` parameter supports only a minimal number of languages.
Expand All @@ -29,6 +30,8 @@ Enhancements
* ``Attributes`` accepts a string parameter.
* ``ColorNegate`` for colors is supported.
* ``D`` and ``Derivative`` improvements.
* ``Expand`` and ``ExpandAll`` now support a second parameter ``patt`` (#1301)
* ``Expand`` and ``ExpandAll`` works with hyperbolic functions (`Sinh`, `Cosh`, `Tanh`, `Coth`)
* ``FileNames`` returns a sorted list (#1250).
* ``FindRoot`` now receives several optional parameters like ``Method`` and ``MaxIterations``.
* ``FixedPoint`` now supports the ``SameTest`` option.
Expand All @@ -39,11 +42,10 @@ Enhancements
* ``StringTake`` now accepts form containing a list of strings and specification (#1297).
* ``Table`` [*expr*, *n*] is supported.
* ``ToString`` accepts an optional *form* parameter.
* ``ToExpression`` handles multi-line string input
* ``ToExpression`` handles multi-line string input.
* The implementation of Streams was redone.



Bug fixes
+++++++++

Expand Down
1 change: 1 addition & 0 deletions mathics/builtin/arithmetic.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"""

from mathics.version import __version__ # noqa used in loading to check consistency.

import sympy
import mpmath
from functools import lru_cache
Expand Down
6 changes: 6 additions & 0 deletions mathics/builtin/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -721,11 +721,17 @@ def boxes_to_tex(self, leaves, **options) -> str:
class PatternError(Exception):
def __init__(self, name, tag, *args):
super().__init__()
self.name = name
self.tag = tag
self.args = args


class PatternArgumentError(PatternError):
def __init__(self, name, count, expected):
super().__init__(None, None)
self.name = name
self.count = count
self.expected = expected


class PatternObject(InstanceableBuiltin, Pattern):
Expand Down
Loading