How to increase maxterms for hypergeometric?
I'm trying to compute a (bunch of) hypergeometric functions for which I get a NoConvergence error
e.g.
hypergeometric([4.14 + 15*I, -3.14 + 15*I],[1. - 1.12e7*I], -500000)
The suggestion of the error message is to try increasing 'maxterms'. However, I don't seem to find a way to do this as e.g.hypergeometric([4.14 + 15*I, -3.14 + 15*I],[1. - 1.12e7*I], -500000,maxterms=10^6)
does not work.
(I could be missing something very basic, I'm rather new to sage)
(please note, when pasting code it's important to be careful of formatting, as some symbols such as
*
have special meaning in markdown; always format code examples either by indenting a whole line with 4 spaces or putting bits of code in backtick quotes)Indeed, that is not a very helpful message. It seems that the underlying low-level
sage.libs.mpmath.ext_impl.MPF_hypsum
function does accept amaxterms
argument, but there is a disconnect that prevents this from being passed to it from the higher-level generichypergeometric
function. I would consider this a bug.