Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into evaluation_as_in_cli
Browse files Browse the repository at this point in the history
  • Loading branch information
mmatera committed Dec 15, 2023
2 parents eb8f4a0 + ebf604d commit 1939c4f
Show file tree
Hide file tree
Showing 52 changed files with 2,239 additions and 1,302 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/osx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ on:
jobs:
build:
env:
LDFLAGS: "-L/usr/local/opt/llvm@11/lib"
CPPFLAGS: "-I/usr/local/opt/llvm@11/include"
LDFLAGS: "-L/usr/local/opt/llvm@14/lib"
CPPFLAGS: "-I/usr/local/opt/llvm@14/include"
runs-on: macos-latest
strategy:
matrix:
Expand All @@ -24,7 +24,7 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Install OS dependencies
run: |
brew install llvm tesseract
brew install llvm@14 tesseract
python -m pip install --upgrade pip
- name: Install Mathics3 with full Python dependencies
run: |
Expand Down
2 changes: 2 additions & 0 deletions AUTHORS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ Additional contributions were made by:
- Pablo Emilio Escobar Gaviria @GarkGarcia
- Rocky Bernstein @rocky
- Tiago Cavalcante Trindade @TiagoCavalcante
- Li Xiang @Li-Xiang-Ideal
- Kevin Cao @kejcao

Thanks to the authors of all projects that are used in Mathics:
- Django
Expand Down
8 changes: 5 additions & 3 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ New Builtins
++++++++++++


* `Elements`
* `RealAbs` and `RealSign`
* `RealValuedNumberQ`
* ``Elements``
* ``ConjugateTranspose``
* ``LeviCivitaTensor``
* ``RealAbs`` and ``RealSign``
* ``RealValuedNumberQ``


Compatibility
Expand Down
6 changes: 4 additions & 2 deletions FUTURE.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@

.. contents::

The following 2023 road map that appears the 6.0.0 hasn't gone through enough discussion. This provisional.
Check the github repository for updates.

2024 Roadmap
============

To be decided...

2023 Roadmap
============
Expand Down
1 change: 1 addition & 0 deletions SYMBOLS_MANIFEST.txt
Original file line number Diff line number Diff line change
Expand Up @@ -574,6 +574,7 @@ System`LessEqual
System`LetterCharacter
System`LetterNumber
System`LetterQ
System`LeviCivitaTensor
System`Level
System`LevelQ
System`LightBlue
Expand Down
3 changes: 2 additions & 1 deletion admin-tools/make-dist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ for pyversion in $PYVERSIONS; do
exit $?
fi
rm -fr build
python setup.py bdist_egg
# PYPI no longer supports eggs
# python setup.py bdist_egg
python setup.py bdist_wheel
done

Expand Down
8 changes: 0 additions & 8 deletions mathics/builtin/arithmetic.py
Original file line number Diff line number Diff line change
Expand Up @@ -958,14 +958,6 @@ class Sum(IterationFunction, SympyFunction):
Verify algebraic identities:
>> Sum[x ^ 2, {x, 1, y}] - y * (y + 1) * (2 * y + 1) / 6
= 0
## Issue #302
## The sum should not converge since the first term is 1/0.
#> Sum[i / Log[i], {i, 1, Infinity}]
= Sum[i / Log[i], {i, 1, Infinity}]
#> Sum[Cos[Pi i], {i, 1, Infinity}]
= Sum[Cos[i Pi], {i, 1, Infinity}]
"""

summary_text = "discrete sum"
Expand Down
5 changes: 1 addition & 4 deletions mathics/builtin/distance/clusters.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
)
from mathics.eval.nevaluator import eval_N
from mathics.eval.parts import walk_levels
from mathics.eval.tensors import get_default_distance


class _LazyDistances(LazyDistances):
Expand Down Expand Up @@ -139,8 +140,6 @@ def _cluster(self, p, k, mode, evaluation, options, expr):
options, "DistanceFunction", evaluation
)
if distance_function_string == "Automatic":
from mathics.builtin.tensors import get_default_distance

distance_function = get_default_distance(dist_p)
if distance_function is None:
name_of_builtin = strip_context(self.get_name())
Expand Down Expand Up @@ -462,8 +461,6 @@ def eval(
options, "DistanceFunction", evaluation
)
if distance_function_string == "Automatic":
from mathics.builtin.tensors import get_default_distance

distance_function = get_default_distance(dist_p)
if distance_function is None:
evaluation.message(
Expand Down
Loading

0 comments on commit 1939c4f

Please sign in to comment.