Commit 7a1241c
committed
Start to reduce/refactor arithmetic ...
Remove stuff from mathics.builtin.arithmetic that does not belong there:
* _MPMathFunction -> MPMathFunction and move to mathics.buitin.base
* _MPMathMultiFunction -> MPMathFunction and move to mathics.builtin.base
* Abs, Piecewise, RealAbs, RealSign, Sign moved to numeric to follow WMA
organization better
The corresponding eval routines will be gone over in another PR. This
one is already large.
Url's gone over to make this not exceed standard line limit.
Note that the formatting has been gone over to follow the existing
pattern that we have been using.
cythonization in mathics.builtin class files removed. It is not
clear this has benefit in modern Pythons, especially in this kind of builtin function
and all of this needs to be retested if not rethought.1 parent 9b3575d commit 7a1241c
File tree
18 files changed
+716
-681
lines changed- mathics
- builtin
- arithfns
- intfns
- numbers
- specialfns
- test
18 files changed
+716
-681
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
9 | | - | |
10 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
11 | 18 | | |
12 | 19 | | |
13 | 20 | | |
| |||
387 | 394 | | |
388 | 395 | | |
389 | 396 | | |
390 | | - | |
| 397 | + | |
391 | 398 | | |
392 | 399 | | |
393 | 400 | | |
| |||
531 | 538 | | |
532 | 539 | | |
533 | 540 | | |
534 | | - | |
| 541 | + | |
535 | 542 | | |
536 | 543 | | |
537 | 544 | | |
| |||
788 | 795 | | |
789 | 796 | | |
790 | 797 | | |
791 | | - | |
792 | 798 | | |
793 | 799 | | |
794 | 800 | | |
| |||
0 commit comments