We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a3fb4f commit f136680Copy full SHA for f136680
CHANGES.rst
@@ -18,6 +18,19 @@ Mathics scanner exceptions of class TranslateError are incompatible
18
with previous versions, and now store error parameters, "name", "tag", and
19
"args".
20
21
+WMA Compatibility
22
+-----------------
23
+
24
+Hypergeometric functions have been revised to conform better to WMA behavior by
25
+expanding hypergeometric results.
26
27
+Bugs
28
+----
29
30
+* Fixed #1187
31
32
33
34
8.0.1
35
-----
36
mathics/eval/specialfns/hypergeom.py
@@ -80,7 +80,7 @@ def eval_Hypergeometric2F1(a, b, c, z):
80
mpmath.hyp2f1, *cast(Sequence[Number], args), prec=prec
81
)
82
else:
83
- return run_sympy_hyper(
+ return run_sympy_hyper_and_expand(
84
[sympy_args[0], sympy_args[1]], [sympy_args[2]], sympy_args[3]
85
86
@@ -90,7 +90,7 @@ def eval_HypergeometricPQF(a, b, z):
90
try:
91
a_sympy = [e.to_sympy() for e in a]
92
b_sympy = [e.to_sympy() for e in b]
93
- return run_sympy_hyper(a_sympy, b_sympy, z.to_sympy())
+ return run_sympy_hyper_and_expand(a_sympy, b_sympy, z.to_sympy())
94
except Exception:
95
return None
96
@@ -143,7 +143,8 @@ def eval_MeijerG(a, b, z):
143
# return None
144
145
146
-def run_sympy_hyper(a, b, z):
+def run_sympy_hyper_and_expand(a, b, z):
147
+ """Ruy SymPy's hyper function and expand the result."""
148
sympy_result = tracing.run_sympy(sympy.hyper, a, b, z)
149
result = sympy.hyperexpand(sympy_result)
150
return from_sympy(result)
0 commit comments