Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
7 changes: 5 additions & 2 deletions CHANGES.rst
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
CHANGES
=======


2.1.1
-----


New builtins
++++++++++++

* ``Dispatch``
* ``Series``, ``O`` and ``SeriesData``



Enhancements
++++++++++++

* ``D`` and ``Derivative`` improvements.
* ``Table`` [*expr*, *n*] is supported.
* ``ToString`` accepts an optional *form* parameter.
* ``ToExpression`` handles multi-line string input
Expand All@@ -24,10 +27,10 @@ Enhancements
Bug fixes
+++++++++


* ``SetTagDelayed`` does not evaluate now the rhs before assignment.
* ``$InstallationDirectory`` starts out Unprotected


2.1.0
-----

Expand Down
7 changes: 6 additions & 1 deletion mathics/builtin/arithmetic.py
Original file line numberDiff line numberDiff line change
Expand Up@@ -37,10 +37,10 @@
SymbolInfinity,
SymbolN,
SymbolNull,
SymbolSequence,
SymbolTrue,
SymbolFalse,
SymbolUndefined,
SymbolSequence,
from_mpmath,
from_python,
)
Expand DownExpand Up@@ -1841,6 +1841,9 @@ class Gamma(_MPMathMultiFunction):
rules = {
"Gamma[z_, x0_, x1_]": "Gamma[z, x0] - Gamma[z, x1]",
"Gamma[1 + z_]": "z!",
"Derivative[1][Gamma]": "(Gamma[#1]*PolyGamma[0, #1])&",
"Derivative[1, 0][Gamma]": "(Gamma[#1, #2]*Log[#2] + MeijerG[{{}, {1, 1}}, {{0, 0, #1}, {}}, #2])&",
"Derivative[0, 1][Gamma]": "(-(#2^(-1 + #1)/E^#2))&",
}

def get_sympy_names(self):
Expand DownExpand Up@@ -1870,6 +1873,8 @@ class Pochhammer(SympyFunction):

rules = {
"Pochhammer[a_, n_]": "Gamma[a + n] / Gamma[a]",
"Derivative[1,0][Pochhammer]": "(Pochhammer[#1, #2]*(-PolyGamma[0, #1] + PolyGamma[0, #1 + #2]))&",
"Derivative[0,1][Pochhammer]": "(Pochhammer[#1, #2]*PolyGamma[0, #1 + #2])&",
}


Expand Down
Loading