Skip to content

Fix error when integrate a non-sympy integrand.#1662

Merged
mmatera merged 4 commits intomasterfrom
handle_non_sympy_integrands
Jan 29, 2026
Merged

Fix error when integrate a non-sympy integrand.#1662
mmatera merged 4 commits intomasterfrom
handle_non_sympy_integrands

Conversation

@mmatera
Copy link
Contributor

@mmatera mmatera commented Jan 29, 2026

If an expression involves 'String' elements, it fails to be converted to sympy. This produced an error in the implementation of Integrate, due to the wrong order in the cases considered. Then, evaluating the expression

Integrate[F[x,"p"],{x,a,b}]

produced an error. This PR fixes that issue.

@rocky
Copy link
Member

rocky commented Jan 29, 2026

LGTM

@mmatera mmatera merged commit 882a8f2 into master Jan 29, 2026
21 checks passed
@mmatera mmatera deleted the handle_non_sympy_integrands branch January 29, 2026 14:11
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.

2 participants

Comments