Skip to content

Iteration limit exceeded evaluating N[Hypergeometric1F1[...]] #1502

@bdlucas1

Description

@bdlucas1

Description

In[1]:= N[Hypergeometric1F1[a, b, (x + I y)^2]]
$IterationLimit::itlim: Iteration limit of 4096 exceeded.
Out[1]= $Aborted

but some variants substituting numerical values for some of a, b, x, y succeed. For example the following succeed:

N[Hypergeometric1F1[1, b, (x + I y)^2]] (* substitute 1 for a *)
N[Hypergeometric1F1[a, b, (x + I 1)^2]] (* substitute 1 for y *)

However the following still fails

N[Hypergeometric1F1[a, 1, (x + I y)^2]] (* substitute 1 for b *)

How to Reproduce

See description

Output Given

See description

Expected behavior

Return a result without exceeding iteration limit

Your Environment

MacOS

Mathics3 9.0.0
on CPython 3.12.10 (main, Apr 8 2025, 11:35:47) [Clang 16.0.0 (clang-1600.0.26.6)]
using SymPy 1.13.3, mpmath 1.3.0, numpy 2.3.2, cython Not installed

Workarounds

None known

Priority

Additional context

Discovered as a test case while investigating strategies for implementing things like ComplexPlot3D and Manipulate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions