Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix dblquad and tplquad not accepting float boundaries #8661

Merged
merged 1 commit into from
Apr 7, 2018

Conversation

vkk800
Copy link
Contributor

@vkk800 vkk800 commented Apr 2, 2018

This is a simple fix to make dblquad() and tplquad() functions accept numbers (instead of just functions) as boundaries for the integration. I'm not sure if the previous behaviour was a bug or done like that on purpose, but since nquad() (which dblquad and tplquad use) accepts numbers as boundaries, it seemed inconsistent to me.

I also changed the documentation and added a simple unit test to reflect this change.

@ev-br ev-br merged commit e416d47 into scipy:master Apr 7, 2018
@ev-br
Copy link
Member

ev-br commented Apr 7, 2018

Makes sense. Thanks @vkk800

@ev-br ev-br added scipy.integrate enhancement A new feature or improvement labels Apr 7, 2018
@ev-br ev-br added this to the 1.1.0 milestone Apr 7, 2018
@vkk800 vkk800 deleted the quadfix branch April 8, 2018 15:43
@vkk800 vkk800 restored the quadfix branch April 8, 2018 15:43
@vkk800 vkk800 deleted the quadfix branch April 8, 2018 15:46
StrahinjaLukic pushed a commit to StrahinjaLukic/scipy that referenced this pull request Apr 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement A new feature or improvement scipy.integrate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants