Skip to content

Fix crashing Hankel1.n() calls - #306

Open
alexfikl wants to merge 3 commits into
inducer:mainfrom
alexfikl:symengine-hankel-evalf
Open

Fix crashing Hankel1.n() calls#306
alexfikl wants to merge 3 commits into
inducer:mainfrom
alexfikl:symengine-hankel-evalf

Conversation

@alexfikl

Copy link
Copy Markdown
Collaborator

From what I can tell, the test was hard segfaulting on main because it was getting somewhere into symengine that assumes function wrappers of this type always return numeric values on .n(). It was then trying to cast that to a number and crashing..

The fix here works if the arguments to Hankel1/BesselJ are actually numeric, by going through sympy to evaluate them. If they're not numeric it still crashes, so that needs some code in symengine and symengine.py.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant