You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @mauricelanghinrichs, thanks for the bug report! In fact, 3F2 has the special method here, which is a rational approximation. I think the explanation is that it's exactly hitting a pole/pole.
Looking at your parameters, you are computing terminating functions, so they're actually polynomials. It would be arguably safe to use
Yes, I think all my cases are terminating hypergeometric functions, as the pFq came up from a finite sum over an expression. So generally the HypergeometricFunctions.pFqmaclaurin could work. However, am I correct to assume that pFqmaclaurin will be typically slower than pFqweniger (default call of pFq here)? As pFqmaclaurin approximates by adding up series elements?
just for the moment. (I generally discourage calling internals, but I don't have a bug fix available right now.)
Agree on this, the interface with simply pFq is perfect for relative non-experts (like me)!
Activity
MikaelSlevinsky commentedon Sep 27, 2023
Hi @mauricelanghinrichs, thanks for the bug report! In fact, 3F2 has the special method here, which is a rational approximation. I think the explanation is that it's exactly hitting a pole/pole.
Looking at your parameters, you are computing terminating functions, so they're actually polynomials. It would be arguably safe to use
just for the moment. (I generally discourage calling internals, but I don't have a bug fix available right now.)
Or you can perturb the argument
More generally, it looks like
pFq((-4, -3, k-2), (2, -k), -1.0)also fails...mauricelanghinrichs commentedon Sep 28, 2023
Thanks for the fast response!
Yes, I think all my cases are terminating hypergeometric functions, as the pFq came up from a finite sum over an expression. So generally the
HypergeometricFunctions.pFqmaclaurincould work. However, am I correct to assume thatpFqmaclaurinwill be typically slower thanpFqweniger(default call ofpFqhere)? AspFqmaclaurinapproximates by adding up series elements?Agree on this, the interface with simply
pFqis perfect for relative non-experts (like me)!