Skip to content

Commit 3e125df

Browse files
committed
merging rocky's nintegrate-rebase
1 parent 60c1463 commit 3e125df

3 files changed

Lines changed: 29 additions & 46 deletions

File tree

CHANGES.rst

Lines changed: 27 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,69 +1,55 @@
11
CHANGES
22
=======
33

4-
<<<<<<< HEAD
5-
6-
2.0.1
7-
-----
8-
9-
General improvements
10-
--------------------
11-
- Consistency version checks for builtin modules at load time
12-
- Partial improvement in Compile: now every expression has a compiled form,
13-
as a Python function.
14-
- Automatic detection for the best strategy to numeric evaluation of constants.
15-
New builtins
16-
------------
17-
18-
- NIntegrate
19-
- ArcTanh
20-
21-
Bug fixes
22-
---------
23-
- TeXForm for integrals are now properly formatted.
24-
25-
26-
Pymathics Modules
27-
------------------
28-
- Pymathics modules now can run initialization code when are loaded.
29-
- The `builtins` list is not hardliked to the library anymore. This simplifies
30-
the loading and reloading of pymathics modules.
31-
- Decoupling of BoxConstructors from the library. Now are defined at the
32-
level of the definition objects. This is useful for customizing the
33-
Graphics output if it is available.
34-
35-
36-
37-
38-
=======
394
2.1.0
405
-----
416

42-
New builtins
43-
++++++++++++++
7+
New builtins
8+
++++++++++++
449

10+
* ``ArcTanh``
4511
* ``ByteArray``
46-
* ``FileNames``
4712
* ``CreateFile``
4813
* ``CreateTemporary``
49-
14+
* ``FileNames``
15+
* ``NIntegrate``
5016

5117
Enhancements
5218
++++++++++++
5319

20+
* the Mathics version is checked for builtin modules at load time. A message is given when a builtin doesn't load.
21+
* Automatic detection for the best strategy to numeric evaluation of constants.
5422
* ``FileNameJoin`` - implement ``OperatingSystem`` option
5523
* Mathics functions are accepted by ``Compile[]``. The return value or type will be
56-
``CompiledFunction``
24+
``Compiled[] and CompiledFunction[]`` every expression can have a compiled form,
25+
as a Python function.
5726
* ``EqualQ[]`` now compares complex against other numbers properly.
5827

28+
29+
Bug fixes
30+
+++++++++
31+
32+
* TeXForm for integrals are now properly formatted.
33+
34+
35+
Pymathics Modules
36+
+++++++++++++++++
37+
38+
* Pymathics modules now can run initialization code when are loaded.
39+
* The ``builtins`` list is not hardliked to the library anymore. This simplifies
40+
the loading and reloading of pymathics modules.
41+
* Decoupling of BoxConstructors from the library. Now are defined at the
42+
level of the definition objects. This is useful for customizing the
43+
Graphics output if it is available.
44+
45+
5946
Miscellanea
6047
+++++++++++
6148

6249
* A pass was made to improve Microsoft Windows compatability and testing
6350
Windows under MSYS.
6451
* Include numpy version in version string. Show in CLI
6552
* Small CLI tweaks ``--colors=None`` added to match mathicsscript.
66-
>>>>>>> upstream/master
6753

6854
2.0.0
6955
-----

mathics/builtin/compilation.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def _pythonized_mathics_expr(*x):
141141

142142
# TODO: check if we can use numba to compile this...
143143
cfunc = _pythonized_mathics_expr
144-
except Exception as e:
144+
except Exception:
145145
cfunc = None
146146

147147
if cfunc is None:
@@ -250,6 +250,5 @@ def apply(self, argnames, expr, code, args, evaluation):
250250
try:
251251
result = code.cfunc(*py_args)
252252
except (TypeError, ctypes.ArgumentError):
253-
evaluation.message("CompiledFunction", "argerr", args)
254-
return
253+
return evaluation.message("CompiledFunction", "argerr", args)
255254
return from_python(result)

mathics/core/expression.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#!/usr/bin/env python3
21
# cython: language_level=3
32
# -*- coding: utf-8 -*-
43

@@ -1472,7 +1471,6 @@ def boxes_to_xml(self, **options) -> str:
14721471
is_style, options = self.process_style_box(options)
14731472
if is_style:
14741473
return self._leaves[0].boxes_to_xml(**options)
1475-
head = self._head
14761474
name = self._head.get_name()
14771475
if (
14781476
name == "System`RowBox"

0 commit comments

Comments
 (0)