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

Evaluating a specific extrapolation throws BoundsError #244

Closed
gentbajraj opened this issue Sep 29, 2018 · 2 comments
Closed

Evaluating a specific extrapolation throws BoundsError #244

gentbajraj opened this issue Sep 29, 2018 · 2 comments

Comments

@gentbajraj
Copy link

I ran across some unexpected behavior. Below is a minimal working example:

using Interpolations
xs = range(1e-2, stop = 8.3, length = 3)
ys = sort(rand(3))
itp = LinearInterpolation(xs, ys, extrapolation_bc = Flat())
itp(8.3) # throws BoundsError

This does not happen in v0.8.0. Is this a bug?

@timholy
Copy link
Member

timholy commented Sep 29, 2018

Yep. Fixed in #245, sorry for the inconvenience.

timholy added a commit that referenced this issue Sep 29, 2018
Avoid numerical-precision failures of bounds checking (fixes #244)
@gentbajraj
Copy link
Author

Thank you!

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

No branches or pull requests

2 participants